package com.wintrue.ffxs.ui.mine;

import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.wintrue.ffxs.R;
import com.wintrue.ffxs.base.BaseFragment;
import com.wintrue.ffxs.ui.mine.MyOrderListActivity;

import butterknife.ButterKnife;
import butterknife.OnClick;

/**
 * Created by wenjie on 2017/8/16.
 */

public class MyFragment extends BaseFragment {

    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        View view = inflater.inflate(R.layout.fragment_me,container,false);
        ButterKnife.bind(this,view);
        return view;
    }

    @OnClick(R.id.test)
    public void doClick(View view){
        startActivity(new Intent(getActivity(), MyOrderListActivity.class));
    }

    @Override
    public void onDestroyView() {
        ButterKnife.unbind(this);
        super.onDestroyView();
    }
}
